package db_java;

import static org.junit.Assert.*;

import org.junit.Assert;
import org.junit.Test;

public class sqlConditionTestNew {

	@Test
	public void test_sqlConditionClient() {
		Person client = new Person("'Natali'", "'Portman'", new Company("'Hollywood'", null, 0));
		String s = db_java.PersonDao.sqlCondition(client);
		Assert.assertEquals(" and client_fn = 'Natali' and client_ln = 'Portman' and company_name = 'Hollywood'", s);
	}
	
//	@Test
//	public void test_sqlConditionCompany() {
//		Company company = new Company("'EPAM'", "'Kiev'", 0);
//		String s = db_java.CompanyDao.sqlCondition(company);
//		Assert.assertEquals(" and company_name = 'EPAM' and company_add = 'Kiev'", s);
//	}

}
